/**
 * Created by tdzl2003 on 10/15/16.
 */
import {
  RichUtils,
} from 'draft-js';

import splitBlockAndKeepAlignment from './keyCommands/splitBlockAndKeepAlignment';

export default function handleKeyCommand(editorState, command) {
  switch (command) {
    case 'split-block':
      return splitBlockAndKeepAlignment(editorState);
  }
  return RichUtils.handleKeyCommand(editorState, command);
}